import Vue from 'vue'
Vue.directive('ellipses',{
    bind(el,bindings){
       let w;
       if(bindings.value){
         w=bindings.value.width
       }else{
         w="100px"
       }
       el.style.width=w
       el.style.whiteSpace="nowrap"
       el.style.textOverflow="ellipsis"
       el.style.overflow='hidden'
    }
})